package com.ljx.itbbs.server.mall.service;

import com.ljx.itbbs.common.domain.vo.resp.PageResp;
import com.ljx.itbbs.server.mall.domain.entity.OrderEntity;
import com.ljx.itbbs.server.mall.domain.vo.req.OrderReq;
import com.ljx.itbbs.server.mall.domain.vo.req.OrderSaveReq;
import com.ljx.itbbs.server.mall.domain.vo.req.OrderSubmitReq;
import com.ljx.itbbs.server.mall.domain.vo.resp.OrderResp;

import java.util.List;

public interface OrderService {


    OrderEntity getOrder(Long userId, String resourceId);

    OrderEntity getOrder(Long orderId);

    List<OrderEntity> batchOrder(Long userId, List<String> resIds);

    Long saveOrder(Long userId, OrderSaveReq req);

    void submitOrder(Long userId, OrderSubmitReq req);

    PageResp<OrderResp> getUserOrderList(Long userId, OrderReq req);

    void updatePaymentStatus(Long orderId, Integer type);
}
